cssimagefallback: Avoid allocating GPtrArray for colors
authorTimm Bäder <mail@baedert.org>
Wed, 23 Sep 2020 04:06:42 +0000 (06:06 +0200)
committerTimm Bäder <mail@baedert.org>
Thu, 24 Sep 2020 17:08:22 +0000 (19:08 +0200)
commit484dcc043bc58e8c2fc650c76faec6490b5097fb
tree4a2aa655eabdd1ce8449e7ed8a9a5876bc00bb6a
parent716b5afe6a40ef8c1f7d7e05c35e330bbe7e9d9e
cssimagefallback: Avoid allocating GPtrArray for colors

If we just parse a color, like image(#FFF), avoid allocating the
GPtrArray to store images. This happens in Adwaita for background images
of backdrop buttons. We save around 70 GPtrArrays this way.
gtk/gtkcssimagefallback.c